package org.linlinjava.litemall.db.domain;

import java.io.Serializable;

/**
 * service_user_im
 * @author 
 */
public class ServiceUserIm implements Serializable {
    /**
     * 自增主键
     */
    private Integer id;

    /**
     * 账号
     */
    private String userName;

    /**
     * 密码
     */
    private String password;

    /**
     * 昵称
     */
    private String nickName;

    /**
     * 性别：0为男，1为女
     */
    private Integer gender;

    /**
     * 头像
     */
    private String avatar;

    /**
     * 电子邮箱
     */
    private String email;

    /**
     * 手机号码
     */
    private String phone;

    /**
     * 角色code：1为用户，2为管理员(该字段暂时不用)
     */
    private Integer roleCode;

    /**
     * 所对应公司ID，如果是用户则为0
     */
    private Integer companyId;

    /**
     * 个性签名
     */
    private String sign;

    /**
     * 创建账号时间
     */
    private String createDate;

    /**
     * 最后一次登录时间
     */
    private String lastLoginDate;

    /**
     * 逻辑删除
     */
    private Boolean isDeleted;

    /**
     * 所对应商城用户ID，如果是客服则为0
     */
    private long litemallCustomer;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public Integer getGender() {
        return gender;
    }

    public void setGender(Integer gender) {
        this.gender = gender;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public Integer getRoleCode() {
        return roleCode;
    }

    public void setRoleCode(Integer roleCode) {
        this.roleCode = roleCode;
    }

    public Integer getCompanyId() {
        return companyId;
    }

    public void setCompanyId(Integer companyId) {
        this.companyId = companyId;
    }

    public String getSign() {
        return sign;
    }

    public void setSign(String sign) {
        this.sign = sign;
    }

    public String getCreateDate() {
        return createDate;
    }

    public void setCreateDate(String createDate) {
        this.createDate = createDate;
    }

    public String getLastLoginDate() {
        return lastLoginDate;
    }

    public void setLastLoginDate(String lastLoginDate) {
        this.lastLoginDate = lastLoginDate;
    }

    public Boolean getIsDeleted() {
        return isDeleted;
    }

    public void setIsDeleted(Boolean isDeleted) {
        this.isDeleted = isDeleted;
    }

    public long getLitemallCustomer() {
        return litemallCustomer;
    }

    public void setLitemallCustomer(long litemallCustomer) {
        this.litemallCustomer = litemallCustomer;
    }


    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", userName=").append(userName);
        sb.append(", password=").append(password);
        sb.append(", nickName=").append(nickName);
        sb.append(", gender=").append(gender);
        sb.append(", avatar=").append(avatar);
        sb.append(", email=").append(email);
        sb.append(", phone=").append(phone);
        sb.append(", roleCode=").append(roleCode);
        sb.append(", companyId=").append(companyId);
        sb.append(", sign=").append(sign);
        sb.append(", createDate=").append(createDate);
        sb.append(", lastLoginDate=").append(lastLoginDate);
        sb.append(", isDeleted=").append(isDeleted);
        sb.append(", litemallCustomer=").append(litemallCustomer);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}